Optimal. Leaf size=258 \[ \frac {a j (h i-g j) x}{h^2}-\frac {b j (f i-e j) p q x}{2 f h}-\frac {b j (h i-g j) p q x}{h^2}-\frac {b p q (i+j x)^2}{4 h}-\frac {b (f i-e j)^2 p q \log (e+f x)}{2 f^2 h}+\frac {b j (h i-g j) (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h^2}+\frac {(i+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac {(h i-g j)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h^3}+\frac {b (h i-g j)^2 p q \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{h^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.37, antiderivative size = 258, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 9, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {2465, 2436,
2332, 2441, 2440, 2438, 2442, 45, 2495} \begin {gather*} \frac {b p q (h i-g j)^2 \text {PolyLog}\left (2,-\frac {h (e+f x)}{f g-e h}\right )}{h^3}+\frac {(h i-g j)^2 \log \left (\frac {f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h^3}+\frac {(i+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac {a j x (h i-g j)}{h^2}+\frac {b j (e+f x) (h i-g j) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h^2}-\frac {b p q (f i-e j)^2 \log (e+f x)}{2 f^2 h}-\frac {b j p q x (f i-e j)}{2 f h}-\frac {b j p q x (h i-g j)}{h^2}-\frac {b p q (i+j x)^2}{4 h} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2332
Rule 2436
Rule 2438
Rule 2440
Rule 2441
Rule 2442
Rule 2465
Rule 2495
Rubi steps
\begin {align*} \int \frac {(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{g+h x} \, dx &=\text {Subst}\left (\int \frac {(524+j x)^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{g+h x} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\int \left (\frac {j (524 h-g j) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h^2}+\frac {(524 h-g j)^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h^2 (g+h x)}+\frac {j (524+j x) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h}\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\frac {j \int (524+j x) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(j (524 h-g j)) \int \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \, dx}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(524 h-g j)^2 \int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{g+h x} \, dx}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {a j (524 h-g j) x}{h^2}+\frac {(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac {(524 h-g j)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h^3}+\text {Subst}\left (\frac {(b j (524 h-g j)) \int \log \left (c d^q (e+f x)^{p q}\right ) \, dx}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(b f p q) \int \frac {(524+j x)^2}{e+f x} \, dx}{2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {\left (b f (524 h-g j)^2 p q\right ) \int \frac {\log \left (\frac {f (g+h x)}{f g-e h}\right )}{e+f x} \, dx}{h^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {a j (524 h-g j) x}{h^2}+\frac {(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac {(524 h-g j)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h^3}+\text {Subst}\left (\frac {(b j (524 h-g j)) \text {Subst}\left (\int \log \left (c d^q x^{p q}\right ) \, dx,x,e+f x\right )}{f h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(b f p q) \int \left (\frac {j (524 f-e j)}{f^2}+\frac {(524 f-e j)^2}{f^2 (e+f x)}+\frac {j (524+j x)}{f}\right ) \, dx}{2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {\left (b (524 h-g j)^2 p q\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {h x}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{h^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {a j (524 h-g j) x}{h^2}-\frac {b j (524 f-e j) p q x}{2 f h}-\frac {b j (524 h-g j) p q x}{h^2}-\frac {b p q (524+j x)^2}{4 h}-\frac {b (524 f-e j)^2 p q \log (e+f x)}{2 f^2 h}+\frac {b j (524 h-g j) (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h^2}+\frac {(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac {(524 h-g j)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h^3}+\frac {b (524 h-g j)^2 p q \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{h^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.27, size = 270, normalized size = 1.05 \begin {gather*} \frac {f \left (h j (2 a f x (4 h i-2 g j+h j x)+b p q (-f x (8 h i-4 g j+h j x)+e (-8 h i+4 g j+2 h j x)))+4 a f (h i-g j)^2 \log (g+h x)+2 b f \log \left (c \left (d (e+f x)^p\right )^q\right ) \left (h j x (4 h i-2 g j+h j x)+2 (h i-g j)^2 \log (g+h x)\right )\right )-2 b p q \log (e+f x) \left (e h j (-4 f h i+2 f g j+e h j)+2 f^2 (h i-g j)^2 \log (g+h x)-2 f^2 (h i-g j)^2 \log \left (\frac {f (g+h x)}{f g-e h}\right )\right )+4 b f^2 (h i-g j)^2 p q \text {Li}_2\left (\frac {h (e+f x)}{-f g+e h}\right )}{4 f^2 h^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.37, size = 0, normalized size = 0.00 \[\int \frac {\left (j x +i \right )^{2} \left (a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )\right )}{h x +g}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}\right ) \left (i + j x\right )^{2}}{g + h x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (i+j\,x\right )}^2\,\left (a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )\right )}{g+h\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________